#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @File  : 6.闭包代码练习.py
# @Author: Micah
# @Func  : 用于
# @Time  : 2023/11/14


def func_1(number):
    def func_2(number_in):
        print(f'结果：{number + number_in}')
        return number + number_in

    return func_2


obj = func_1(20)
res = obj(10)

print(res)
